export default {
  path: "/enquiry",
  redirect: "/enquiry/index",
  meta: {
    icon: "ri:information-line",
    // showLink: false,
    title: "询价管理",
    rank: 18
  },
  children: [
    {
      path: "/enquiry/client/index",
      name: "index",
      component: () => import("@/views/enquiry/client/index.vue"),
      meta: {
        title: "询价单管理",
        roles: ["customer"]
      }
    },
    {
      path: "/enquiry/client/list",
      name: "enquirylist",
      component: () => import("@/views/enquiry/client/EnquiryList.vue"),
      meta: {
        title: "客户询价",
        roles: ["admin", "saleman"],
        showParent: true
      }
    },
    {
      path: "/enquiry/client/add",
      name: "addenquriy",
      component: () => import("@/views/enquiry/client/AddEnquiry.vue"),
      meta: {
        title: "添加询价",
        showParent: true,
        roles: ["customer"]
      }
    },
    {
      path: "/enquiry/client/detail",
      name: "detail",
      component: () => import("@/views/enquiry/client/enquiryDetail.vue"),
      meta: {
        title: "询价详情",
        showParent: true,
        roles: ["customer"]
      }
    },
    {
      path: "/enquiry/freight/offerDetails",
      name: "offerDetails",
      component: () => import("@/views/enquiry/freight/offerDetails.vue"),
      meta: {
        title: "报价详情",
        // showParent: true,
        roles: ["admin", "customer"]
      }
    },
    {
      path: "/enquiry/freight/index",
      name: "index",
      component: () => import("@/views/enquiry/freight/index.vue"),
      meta: {
        title: "货代询价",
        roles: ["admin", "saleman"]
      }
    },
    {
      path: "/enquiry/freight/offerRecords",
      name: "offerRecords",
      component: () => import("@/views/enquiry/freight/offerRecords.vue"),
      meta: {
        title: "报价记录",
        // showParent: true,
        roles: ["admin", "customer"]
      }
    },
    {
      path: "/enquiry/freight/AddFreight",
      name: "offerRecords",
      component: () => import("@/views/enquiry/freight/AddFreight.vue"),
      meta: {
        title: "添加询价",
        // showParent: true,
        roles: ["admin", "customer"]
      }
    }
  ]
} satisfies RouteConfigsTable;
